#!/usr/bin/env python
# -*- coding=utf8 -*-
"""
# Author: bighu
# Created Time : 2022年04月01日 星期五 21时09分23秒
# File Name: shiyan1_2.py
# Description
"""
import shiyan1

def funLoadMD5():
    MD5Dic = set()
    f = open("./MalwareMD5.txt")
    line = f.readline()
    while line:
        MD5Dic.add(line)
        line = f.readline()
    return MD5Dic

def ComparedMD5(fileMD5):
    MD5Dic = funLoadMD5()
    for MD5Iter in MD5Dic:
        if MD5Iter == fileMD5:
            print("该文件存在与对照表中")
            return
    print("该文件不在对照表中")

if __name__ == "__main__":
    fileMD5 = shiyan1.funGetUserInput()
    print(fileMD5)
    ComparedMD5(fileMD5)
